#include "GUI.h"

sf::Mutex globalLock;


void exit(){
	globalLock.Unlock();
	printf("Exiting application..");
	GUI* rempart = GUI::getInstance();
	rempart->stopLoop();
	
	rempart->Close();
	delete rempart;
}

int main() {
	atexit(exit);
	GUI::getInstance()->startLoop();	
	return 0;
}
